package com.youi.entity;

import java.util.Date;

import com.youi.common.DelStatus;

import java.io.Serializable;


/**
 * 订单售后申请信息
 * @author XJY
 */
public class Orderaftersale implements Serializable {

	private Long id;							//id
	private Date gmtCreated;					//创建时间
	private Integer delStatus;					//删除状态（0否 1是）
	private Date gmtModify;					    //最后修改时间
	private Long userId;					    //用户id
	private Long orderId;					    //订单id
	private Integer status;					    //状态(-1已拒绝 0待处理 1已处理)
	private Integer isTake;					    //取货(0否 1是)
	private String reason;					    //申请原因
	private String illustrate;					//说明
	private String imgs;					    //售后图片(多张图片逗号隔开)

    public Orderaftersale(){

    }

    public Orderaftersale(Long id,Date gmtCreated,Integer delStatus,Date gmtModify) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
    }


    public Orderaftersale(Long id,Date gmtCreated,Integer delStatus,Date gmtModify,Long userId,Long orderId,Integer status,Integer isTake,String reason,String illustrate,String imgs) {
       this.id=id;
       this.gmtCreated=gmtCreated;
       this.delStatus=delStatus;
       this.gmtModify=gmtModify;
       this.userId=userId;
       this.orderId=orderId;
       this.status=status;
       this.isTake=isTake;
       this.reason=reason;
       this.illustrate=illustrate;
       this.imgs=imgs;
    }
    
    public Orderaftersale(Long userId,Long orderId,Integer isTake,String reason,String illustrate,String imgs) {
        this.gmtCreated=new Date();
        this.delStatus=DelStatus.NODEL;
        this.gmtModify=gmtCreated;
        this.userId=userId;
        this.orderId=orderId;
        this.status=0;
        this.isTake=isTake;
        this.reason=reason;
        this.illustrate=illustrate;
        this.imgs=imgs;
     }


	public void setId(Long id){
		this.id=id;
	}

	public Long getId(){
		return id;
	}

	public void setGmtCreated(Date gmtCreated){
		this.gmtCreated=gmtCreated;
	}

	public Date getGmtCreated(){
		return gmtCreated;
	}

	public void setDelStatus(Integer delStatus){
		this.delStatus=delStatus;
	}

	public Integer getDelStatus(){
		return delStatus;
	}

	public void setGmtModify(Date gmtModify){
		this.gmtModify=gmtModify;
	}

	public Date getGmtModify(){
		return gmtModify;
	}

	public void setUserId(Long userId){
		this.userId=userId;
	}

	public Long getUserId(){
		return userId;
	}

	public void setOrderId(Long orderId){
		this.orderId=orderId;
	}

	public Long getOrderId(){
		return orderId;
	}

	public void setStatus(Integer status){
		this.status=status;
	}

	public Integer getStatus(){
		return status;
	}

	public void setIsTake(Integer isTake){
		this.isTake=isTake;
	}

	public Integer getIsTake(){
		return isTake;
	}

	public void setReason(String reason){
		this.reason=reason;
	}

	public String getReason(){
		return reason;
	}

	public String getIllustrate() {
		return illustrate;
	}

	public void setIllustrate(String illustrate) {
		this.illustrate = illustrate;
	}

	public void setImgs(String imgs){
		this.imgs=imgs;
	}

	public String getImgs(){
		return imgs;
	}

}
